package cate.game.pay.msg;

import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBPay;

@ClientMsg(title = "角色支付数据 の 请求")
public class RolePayInitReq implements MsgInput {

    @Override
    public void execute(GameBody game, ClientContext cc) {
        cc.sendNow(new RolePayInitResp(cc.getRole().getPay()));
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBPay.INIT_REQ;
    }

}

